<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta  charset="utf-8">
<meta  name="viewport"  content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>立即夺宝</title>
<link  rel="stylesheet"  href="../addons/feng_duobao/template/css/css.css">
<link  rel="stylesheet"  href="../addons/feng_duobao/template/css/duobao.css">
<script  src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
</head>
<body  style="background:#f6f6f8;">
<section  class="top_bar"> 
	<a  href="javascript:history.back(-1);"   title="返回"  class="back"><i  class="b_arr"></i>返回</a>
	<a  href="{php echo $this->createMobileUrl('index')}"  title="首页"  class="home">首页</a>
	<h2  id="oneNavTitle">{$goods['title']}</h2>
</section>
<section  class="wrap">
  <section  class="prize_detail"  id="info"> <dl  class="prize2">
      <dt> <a  href="javascirpt:;"  title="(第{$goods['periods']}期){$goods['title']}"><img  src="{$_W['attachurl']}{$goods['picarr']}"  style="width:100%;"alt="(第{$goods['periods']}期){$goods['title']}" style="width:100%;"/></a></dt>
      <dd  class="pri_info2">
        <h3  class="pri_tit"> <a  href="{$goods['content']}"  title="(第{$goods['periods']}期){$goods['title']}">(第{$goods['periods']}期){$goods['title']}</a></h3>
        <p  class="total">总需：{$goods['zongrenshu']}份</p>
        <div  class="join_num">
          <div  class="bar">
            <div  style="width:{$goods['scale']}%;"  class="bar_in"></div>
          </div>
          <span  class="att_num">已参与：{$goods['canyurenshu']}</span> <span  class="remain_num">剩余：<span  class="fc">{$goods['shengyurenshu']}</span>次</span> </div>
        <a  href="{php echo $this->createMobileUrl('exchange', array('id' => $goods['id']))}"  title="兑换幸运码"  class="chk_btn1"  style="display:">兑换幸运码</a> 
		 <!--a  href="{php echo $this->createMobileUrl('exchange', array('id' => $goods['id']))}"  title="兑换幸运码"  class="chk_btn1"  style="display:">剩余的{$goods['shengyurenshu']}次全包了</a--> </dd>
		<div class="g-footer">
    <div class="g-wrap">
        <p>{$people['nickname']}特别说明：参与次数越多，中奖的几率会越大哦！</p> 
		
</dl>
</section>

  <section  class="nav_bar"> <a  href="{php echo $this->createMobileUrl('mycodes', array('id' => $goods['id'],'periods' => $goods['periods'],'title' => $goods['title']))}"  class="item"  id="mycode"> <strong  class="item_txt">我的幸运码<!--span  class="rec_num1">参与记录</span--></strong> </a> </section>
  <section  class="nav_bar"> <a  /*onclick="alert('{$goods['content']}') "*/ href="{$goods['content']}"  class="item"  id="giftinfo"> <strong  class="item_txt">商品介绍<!--span  class="rec_num1">不看后悔</span--></strong> </a> </section>
  <section  class="nav_bar"> <a  href="{php echo $this->createMobileUrl('period', array('id' => $goods['id'],'sid' => $goods['sid']))}"  class="item"  id="wangqi"> <strong  class="item_txt">往期开奖<!--span  class="rec_num1">开奖记录</span--></strong>  </a> </section>
   <section  class="nav_bar"> <a  href="{php echo $this->createMobileUrl('introduction')}"  class="item"  id="wangqi"> <strong  class="item_txt">什么是一元夺宝？<!--span  class="rec_num1">新手必看</span--></strong>  </a> </section>
  <section  class="white_box">
    <div  class="record_list"  id="gift">
      <h3>最近夺宝记录</h3>
     <span  class="ico_clock"></span>
    <div  class="date"><span  class="dot"></span></div>
      <ul>
        {loop $list $gid $lists}
        <li><span  class="dot"><i></i></span>
          <p><span  class="fc"><a  style="color:#ee433e;"  href="">{$lists['nickname']}</a></span>参与了<span  class="fc">{$lists['count']}次</span></p>
          <span  class="time">{php echo date('m-d H:i',$lists['createtime'])}</span> 
        </li>
        {/loop} 
      </ul>
    </div>
<!--     <span  id="oneMore"  class="load_more"  style="">加载更多&gt;&gt;</span> -->
  </section>
</section>
</body>
<script type="text/javascript">
wx.ready(function () {
  var shareData = {
    title: "{$share_data['share_title']}",
    desc: "{$share_data['share_desc']}",
    link: "{$to_url}",
    imgUrl: "{$_W['attachurl']}{$share_data['share_image']}",
  };
//分享朋友
  wx.onMenuShareAppMessage({
      title: shareData.title,
      desc: shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
        window.location.href =adurl;
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
  });
  //朋友圈
  wx.onMenuShareTimeline({
      title: shareData.title+"---"+shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
        window.location.href =adurl;
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
  });   

});
</script>
<style>
.chk_btn1 {
display: block;
background: #DF144D;
border-radius: 0.6rem;
height: 3rem;
line-height: 3rem;
font-size: 1.2rem;
text-align: center;
color: #fff;
margin: 1rem;
}
.pri_info2 .chk_btn1 {
margin: 1rem 0;
}
.rec_num1 {
font-size: 0.8rem;
color: #ea2127;
position: absolute;
/*top: 1rem;*/
right: 2rem;
}

</style>
</html>